package com.lizx.staff.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lizx.pojo.TbProject;
import com.lizx.pojo.vo.TbProjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ProjectMapper extends BaseMapper<TbProject> {
    @Select("select * from tb_project order by orders")
    List<TbProject> list();

    @Select("select id,name from tb_project where status =2 order by orders")
    List<TbProjectVo> selectListAll();

}
